﻿using System;

namespace BuildanArrayWithStackOperations
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(string.Join(',', new Solution().BuildArray(target: new int[] { 1, 3 }, n: 3)));
            Console.WriteLine(string.Join(',', new Solution().BuildArray(target: new int[] { 1,2, 3 }, n: 3)));
            Console.WriteLine(string.Join(',', new Solution().BuildArray(target: new int[] { 1, 2 }, n: 4)));
        }
    }
}
